<include file="Public:header" />
<div style="background:#fff; height:40px; line-height:40px; border-bottom:1px solid #ccc; text-align:center;" class="headernav1"> <a href="javascript:history.go(-1);" style="height:40px; width:40px; display:block; float:left; text-align:center;"><i class="fa fa-angle-left"></i></a> <i style="color:#ff1b51;" class="fa fa-group"></i> 服务卡使用记录 <a href="{:U('Home/Cart/index')}" style="height:40px; width:40px; display:block; float:right; text-align:center;"><i class="fa fa-cart-plus"></i></a> </div>
<style>.headernav1 .fa{font-size:20px;}
.headernav{display:none;}
@media (min-width: 50px){
	     .nav-justified>li{
		display: table-cell;
		width: 1%;
	}
	   }
.media p{margin-bottom:0px;}
.media{padding:5px 10px; background:#fff; margin-top:5px;}
.nav-justified>li>a{margin-bottom:0; border-radius:0;}

.nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover{background-color:#FF1B51;}


</style>



<div class="panel panel-success" style="margin:0; border:none; border-top:4px solid #eee; margin-top:4px;"> 
  
  <div class="panel-body" style="background:#fff; padding:0;">



<gt name="key" value="0">
    <div style="border-top:4px solid #eee;"></div>
</gt>




<volist name="list" id="vo">
  <li class="list-group-item">
    
    使用时间：{:date('Y-m-d H:i:s', $vo['usetime'])}
  </li>
</volist>
  



<gt name="count" value="0">
    <a class="btn btn-success" onClick="useCard({$info.id});" style="width:96%; margin:2%;" href="javascript:void(0);">现在使用（还有{$count}次）</a>
</gt>














  </div>
</div>
<div class="pages">{$pages}</div>




<script>
    function useCard(Serviceclog_id){
		if(!confirm('确认要使用服务卡吗？')){
			return false;
		}
        $.post('{:U('servicelog')}', {'Serviceclog_id': Serviceclog_id}, function(data){
		    	if(data.status == 1){
					alert(data.info);
					window.location.reload();
				}
		},'json');	
    }
</script>

<include file="Public:footer" />